package com.vegetable.modules.entity.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 财务收款管理
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FinancialCollectionDetailVO对象", description="财务收款管理提交detailVO类")
public class FinancialCollectionDetailVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "销售出库表id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    @ApiModelProperty(value = "单号")
    private String docNo;

    @ApiModelProperty(value = "批次号")
    private String lotNo;
    @ApiModelProperty(value = "车次")
    private String trainNum;

    @ApiModelProperty(value = "订单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @ApiModelProperty(value = "已收")
    private BigDecimal receivedMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "未对账金额")
    private BigDecimal verifyMonet;

    @ApiModelProperty(value = "此次回款/实收")
    private BigDecimal money = BigDecimal.ZERO;

    @ApiModelProperty(value = "此次回款/实收")
    private Long customerId;

    @ApiModelProperty(value = "此次回款/实收")
    private String customerName;

    @ApiModelProperty(value = "提成-对外")
    private BigDecimal commissionOut;
    
    @ApiModelProperty(value = "销售出库单金额")
    private BigDecimal salesOutAmount;
    
    @ApiModelProperty(value = "此次扣款")
    private BigDecimal deductionMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "扣款原因")
    private String deductionReason;

    @ApiModelProperty(value = "备注")
    private String remark;

}
